home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / graphics / sfwjpg / doc / usage.txt < prev    next >
Text File  |  1999-06-15  |  4KB  |  130 lines

  1. #
  2. # usage.txt
  3. # Copyright (c) 1997-1999  Everett Lipman
  4. #
  5. # This document is free software; you can redistribute it and/or
  6. # modify it under the terms of the GNU General Public License
  7. # as published by the Free Software Foundation; either version 2
  8. # of the License, or (at your option) any later version.
  9. # This document is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # The GNU General Public License is available at
  14. #
  15. #    http://www.fsf.org/copyleft/gpl.html
  16. #
  17. # Alternatively, you can write to the 
  18. #
  19. #    Free Software Foundation, Inc.
  20. #    59 Temple Place - Suite 330
  21. #    Boston, MA  02111-1307, USA
  22. #
  23.  
  24. #
  25. # 9 May 1999
  26. #
  27.  
  28. This file describes the usage of the programs sfwjpg, pwpjpg,
  29. pwpext, and the Independent JPEG Group's jpegtran.
  30.  
  31.  
  32. Limitations:
  33.  
  34.   The programs sfwjpg and pwpjpg convert from Seattle
  35.   FilmWorks's private file formats to JFIF (JPEG File Interchange
  36.   Format).  As far as I am aware, Seattle FilmWorks does not
  37.   make public the specifications of these formats.  The format
  38.   specifications were deduced by examining a number of
  39.   .sfw and .pwp files, and may not be entirely accurate.  In
  40.   particular, some .sfw files which were downloaded from the SFW
  41.   web site were not properly converted to JFIF.  All .pwp files
  42.   which were downloaded from SFW and tried have been converted
  43.   without any problems.
  44.  
  45.   Converted images will need to be flipped vertically.  This can
  46.   be done with jpegtran.  The jpegtran program is part of the
  47.   Independent JPEG Group's free software, which can be obtained
  48.   from
  49.  
  50.   ftp://ftp.uu.net/graphics/jpeg 
  51.  
  52.   pwpext is a UNIX (Bourne) shell script, and will not work unless
  53.   pwpjpg and jpegtran are in the execution search path ($PATH) when
  54.   it is invoked.
  55.  
  56.  
  57. sfwjpg
  58.  
  59.   sfwjpg will take a single .sfw file and convert it into a
  60.   .jpg (JFIF) file.  The image in the newly created .jpg file
  61.   will then need to be flipped vertically.  sfwjpg takes one or
  62.   two arguments, the name of the .sfw file to be converted, and
  63.   an optional output file:
  64.  
  65.   sfwjpg mypic.sfw
  66.  
  67.   This will create the file mypic.jpg in the current directory.
  68.   mypic.sfw will not be altered or removed.  Under Microsoft
  69.   Windows, sfwjpg.exe must be invoked from the run window
  70.   command line.
  71.  
  72.   sfwjpg mypic.sfw foo.jpg
  73.  
  74.   This will convert mypic.sfw and leave the result in foo.jpg.
  75.  
  76.   sfwjpg mypic.sfw -
  77.  
  78.   This will convert mypic.sfw and write the result to the standard
  79.   output.
  80.  
  81.  
  82. pwpjpg
  83.  
  84.   pwpjpg will take a .pwp file and extract the images in the
  85.   file.  A .pwp file typically contains the scanned images from
  86.   an entire roll of film.  The names of the images are contained
  87.   within the .pwp file.  pwpjpg takes a single argument, the
  88.   name of the .pwp file from which to extract the images:
  89.  
  90.   pwpjpg mypics.pwp
  91.  
  92.   This will extract all of the images contained in mypics.pwp
  93.   and write them in the current directory as .jpg (JFIF) files.
  94.   The file names will correspond to the names of the images
  95.   stored in the .pwp file.  mypics.pwp will not be altered or
  96.   removed.  Under Microsoft Windows, pwpjpg.exe must be invoked
  97.   from the run window command line.
  98.  
  99.  
  100. pwpext
  101.  
  102.   pwpext is a UNIX (Bourne) shell script which extracts and
  103.   flips the images from a .pwp file.  It takes a single
  104.   argument, the name of the .pwp file:
  105.  
  106.   pwpext mypics.pwp
  107.  
  108.   This will extract, flip, and store as .jpg files all of the
  109.   images contained in mypics.pwp.  mypics.pwp will not be
  110.   altered or removed.
  111.  
  112.  
  113. jpegtran
  114.  
  115.   jpegtran will do a lossless vertical inversion of the image in
  116.   a .jpg file.  This is a complicated process which is described
  117.   in details.txt.  jpegtran can use use standard input and output:
  118.  
  119.   jpegtran -flip vertical < mypic.jpg > myflippedpic.jpg
  120.  
  121.   This will create the file myflippedpic.jpg, which will contain
  122.   the same image as mypic.jpg, except that the vertical ordering
  123.   of the scan lines will be reversed in myflippedpic.jpg.  This
  124.   flipping can be done by most image processing programs, though
  125.   usually not without some gain in file size and/or loss in
  126.   image quality.
  127.